import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class code2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        String s = in.next();
        StringBuilder ret = new StringBuilder();


        for(int i=0;i<s.length();i++) {
            int x = s.charAt(i)-'0';
            if(x % 2 == 0) {
                ret.append(0);
            }else {
                ret.append(1);
            }
        }

        System.out.print(Integer.valueOf(ret.toString()));
    }
}